//
//  BRDealFlowModel.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/11/2.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import "BRBaseModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface BRDealFlowModel : BRBaseModel
/// 交易id
@property (nonatomic,strong) NSString *dealId;

/// 银行卡后4位
@property (nonatomic,strong) NSString *bankNo;
/// 交易时间
@property (nonatomic,strong) NSString *createTime;
/// 交易金额
@property (nonatomic,strong) NSDecimalNumber *amount;
/// 支付方式: 0-钱包支付 1-卡支付 2-亲情圈 3-Apple 4-google 5-paypal 6-weChat 7-alipay,可用值:1,2,3,4,5,6,7
@property (nonatomic,strong) NSString *paymentMethod;
/// 流水类型：1-租借 2-租金退款 3-会员 4-会员退款 5-押金 6-押金退款 7-罚金 8-罚金退款 9-添加卡 10-添加卡退款,可用值:1,2,3,4,5,6,7,8,9,10
@property (nonatomic,assign) NSInteger type;
// 是否退款 0 1
@property (nonatomic,assign) NSInteger refund;

/// 网点名称
@property (nonatomic,strong) NSString *rentBranchName;
/// 网点id
@property (nonatomic,strong) NSString *rentCabinetNo;
/// 购买的pb
@property (nonatomic,strong) NSString *pbNo;
/// 流水号
@property (nonatomic,strong) NSString *orderNo;

@property (nonatomic,strong) BRRuleModel *billing;

//billDuration    计费时长    integer(int32)
@property (nonatomic,strong) NSString *billDuration;
//couponAmount    优惠券金额    number
@property (nonatomic,strong) NSDecimalNumber *couponAmount;
//couponInfo    优惠券信息    CouponDTO    CouponDTO
@property (nonatomic,strong) BRCouponModel *couponInfo;
//depositAmount    押金金额    number
@property (nonatomic,strong) NSDecimalNumber *depositAmount;
//depositDeductionAmount    押金扣款金额    number
@property (nonatomic,strong) NSDecimalNumber *depositDeductionAmount;
//depositRefundAmount    押金退款金额    number
@property (nonatomic,strong) NSDecimalNumber *depositRefundAmount;
//exceedAmount    超出的金额    number
@property (nonatomic,strong) NSDecimalNumber *exceedAmount;
//memberAmount    会员优惠金额    number
@property (nonatomic,strong) NSDecimalNumber *memberAmount;
//orderAmount    订单金额    number
@property (nonatomic,strong) NSDecimalNumber *orderAmount;
//penaltyAmount    罚金    number
@property (nonatomic,strong) NSDecimalNumber *penaltyAmount;
//plateCouponAmount    平台优惠金额    number
@property (nonatomic,strong) NSDecimalNumber *plateCouponAmount;
//promoCodeAmount    优惠码金额    number
@property (nonatomic,strong) NSDecimalNumber *promoCodeAmount;
//realAmount    实际金额    number
@property (nonatomic,strong) NSDecimalNumber *realAmount;
//refundAmount    退款金额    number
@property (nonatomic,strong) NSDecimalNumber *refundAmount;
//taxAmount    税金额    number
@property (nonatomic,strong) NSDecimalNumber *taxAmount;
@property (nonatomic,assign) CGFloat tax;
//transferNo    流水号    string
@property (nonatomic,strong) NSString *transferNo;
/// paymentState    支付状态：0-未支付 1-已支付 2-免费 3-部分退款 4-全部退款    integer(int32)
@property (nonatomic,assign) NSInteger paymentState;
/// sentReceipt 是否发送了收据 1
@property (nonatomic,assign) BOOL sentReceipt;

@end

NS_ASSUME_NONNULL_END
